import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import $public from 'common/js/public.js'
import $api from 'common/js/request.js'
import $store from 'common/js/store.js'
import $socket from 'common/js/webSocket.js'

Vue.prototype.$public = $public;
Vue.prototype.$api = $api;
Vue.prototype.$store = $store;
Vue.prototype.$socket = $socket;
Vue.config.productionTip = false;
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif